package com.share.example.selenium.service;

import java.util.Set;

public interface CommonService {
    boolean openUrl(String url, int delaySecord, String processCode);

    Set<String> listWindows(String processCode);

    boolean switchToTarget(String desTarget, String processCode);

    boolean closeTab(String desTarget, String processCode);

    Object exeGroovyByCode(String code, String processCode);

    Object exeGroovyById(String id, String processCode);

    Boolean reInitDriver(String processCode);

    Boolean refreshChrome(int delaySecord, String processCode);

    Object getCookies(String processCode);

    Integer setOneCookie(String processCode, String cookieStr);

    Integer loadCookies(String processCode, String cookieSetStr);
}
